package guda.house.biz.enums;

/**
 * Created by well on 16/3/23.
 */
public enum OwnerTypeEnum {

    owner("购买"),
    rent("租赁"),



    ;

    private String desc;

    OwnerTypeEnum(String desc){
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static OwnerTypeEnum getByDesc(String s){
        OwnerTypeEnum[] values = OwnerTypeEnum.values();
        for(OwnerTypeEnum ownerTypeEnum:values){
            if(ownerTypeEnum.desc.equals(s)){
                return ownerTypeEnum;
            }
        }
        return null;
    }
}
